<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta charset="UTF-8">
	<title>首页</title>
	<link href="<%=path %>/static/css/frame.css" rel="stylesheet" type="text/css" />
	<link rel="stylesheet" type="text/css" href="<%=path %>/static/js/easyui/themes/default/easyui.css">
	<link rel="stylesheet" type="text/css" href="<%=path %>/static/js/easyui/themes/icon.css">
	<script type="text/javascript" src="<%=path %>/static/js/jquery.min.js"></script>
	<script type="text/javascript" src="<%=path %>/static/js/easyui/jquery.easyui.min.js"></script>
	<script type="text/javascript" src="<%=path %>/static/js/easyui/locale/easyui-lang-zh_CN.js"></script>
	<script src="<%=path %>/static/js/appCache.js" type="text/javascript"></script>
	<script src="<%=path %>/static/js/system.js" type="text/javascript"></script>
	<script type="text/javascript" src="<%=path %>/static/js/outlook2.js"></script>
	<script type="text/javascript">
		var path = "<%=path%>";
		$(function(){
			InitLeftMenu();
			tabClose();
			tabCloseEven();
			
            openPwd();
            $('#editpass').click(function() {
                $('#w').window('open');
            });
            $('#btnEp').click(function() {
                serverLogin();
            })
            $('#btnCancel').click(function(){closePwd();})
            $('#loginOut').click(function() {
                $.messager.confirm('系统提示', '您确定要退出本次登录吗?', function(r) {
                    if (r) {
                        location.href = '/ajax/loginout.ashx';
                    }
                });
            })
		})
	</script>
</head>
<body class="easyui-layout">
	<div data-options="region:'north',split:true" style="overflow: hidden;height:30px;
	background: url(<%=path%>/static/images/layout-browser-hd-bg.gif) #7f99be repeat-x center 50%;
	line-height: 20px;color: #fff;font-family: Verdana, 微软雅黑,黑体">
		<span style="float:right; padding-right:20px;" class="head">欢迎&nbsp;管理员 
			<a href="#" id="editpass">修改密码</a> 
			<a href="#" id="loginOut">安全退出</a>
		</span>
		<span style="padding-left:10px; font-size: 16px; "><img src="<%=path%>/static/images/blocks.gif" width="20" height="20" align="absmiddle" /> jQuery.EasyUI- 1.2.2 应用实例</span>
	</div>
	<div data-options="region:'west',split:true,title:'导航菜单'" style="width:180px">
		<div id="nav" class="easyui-accordion" fit="true" border="false">
		</div>
	</div>
	<div data-options="region:'center'" style="overflow: hidden">
		<div id="tabs" class="easyui-tabs"  fit="true" border="false">
			<div title="欢迎使用" style="padding:20px;overflow:hidden;color:red;">
				<h1 style="font-size:26px;">系统环境说明：</h1>
				<h1 style="font-size:24px;">操作系统：win7</h1>
				<h1 style="font-size:24px;">动态服务器：tomcat1 pid=1033,tomcat2 pid=3422</h1>
				<h1 style="font-size:24px;">静态服务器：nginx 版本：1.4.2</h1>
				<h1 style="font-size:24px;">数据库：mongoDB 版本：2.4.8</h1>
    			<h1 style="font-size:24px;">缓存：memcached 版本：1.4.17</h1>
			</div>
		</div>
	</div>
	<div data-options="region:'south',split:true" style="height:30px;background:#D2E0F2">
		<div class="footer">技术支持：</div>
	</div>
	
	<!--修改密码窗口-->
    <div id="w" class="easyui-window" title="修改密码" collapsible="false" minimizable="false"
        maximizable="false" icon="icon-save"  style="width: 300px; height: 150px; padding: 5px;
        background: #fafafa;">
        <div class="easyui-layout" fit="true">
            <div region="center" border="false" style="padding: 10px; background: #fff; ">
                <table cellpadding=3>
                    <tr>
                        <td>新密码：</td>
                        <td><input id="txtNewPass" type="password" class="txt01" /></td>
                    </tr>
                    <tr>
                        <td>确认密码：</td>
                        <td><input id="txtRePass" type="password" class="txt01" /></td>
                    </tr>
                </table>
            </div>
            <div region="south" border="false" style="text-align: right; height: 30px; line-height: 30px;">
                <a id="btnEp" class="easyui-linkbutton" icon="icon-ok" href="javascript:void(0)" >
                    确定</a> <a id="btnCancel" class="easyui-linkbutton" icon="icon-cancel" href="javascript:void(0)">取消</a>
            </div>
        </div>
    </div>
	
	<div id="mm" class="easyui-menu" style="width:150px;">
		<div id="mm-tabupdate">刷新</div>
		<div class="menu-sep"></div>
		<div id="mm-tabclose">关闭</div>
		<div id="mm-tabcloseall">全部关闭</div>
		<div id="mm-tabcloseother">除此之外全部关闭</div>
		<div class="menu-sep"></div>
		<div id="mm-tabcloseright">当前页右侧全部关闭</div>
		<div id="mm-tabcloseleft">当前页左侧全部关闭</div>
		<div class="menu-sep"></div>
		<!--  
		<div id="mm-exit">退出</div>
		-->
	</div>
</body>
</html>
